<template>
	<view class="container">
		<view class="box"><xk-login-item></xk-login-item></view>
		<view class="box">
			<uni-list>
				<uni-list-item v-for="(item, index) in menuList" :key="index">
					<template slot="body" style="width: 100%;">
						<xk-list-item :resource="item"></xk-list-item>
					</template>
				</uni-list-item>
			</uni-list>
		</view>
		<!-- <view class="contact-box" @click="getUserinfo"><text>服务热线:</text><text>400-186-7108</text></view> -->
	</view>
</template>

<script>
	import LoginItem from './components/xk-login-item'
	import ListItem from './components/xk-list-item'
	export default {
		components: {
			'xk-login-item': LoginItem,
			'xk-list-item': ListItem
		},
		data() {
			return {
				menuList: [{
						icon: '/static/my/m1.png',
						title: '我的简历',
						type: 'page',
						path: './subPages/resume'
					},
					{
						icon: '/static/my/m2.png',
						title: '我的收藏',
						type: 'page',
						path: './subPages/collect'
					},
					{
						icon: '/static/my/m3.png',
						title: '联系客服',
						type: 'event',
						name: 'contact'
					},
					{
						icon: '/static/my/m4.png',
						title: '设置',
						type: 'page',
						path: './subPages/set'
					}
				]
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.contact-box {
		text-align: center;
		margin-top: 40rpx;

		&>text:nth-child(1) {
			color: #878787;
		}

		&>text:nth-child(2) {
			color: #07C160;
			margin-left: 10rpx;
		}
	}
</style>